package com.zengqingfa.examples.mybatisplus.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;

import java.util.Date;

/**
 * @author zengqingfa
 * @className ExportUserModel
 * @description
 * @create 2021/9/17 21:52
 */
@Data
public class ExportUserModel extends BaseRowModel {

    @ExcelProperty(index = 0, value = "test-0")
    private Long id;

    @ExcelProperty(index = 1, value = "test-1")
    private String name;

    @ExcelProperty(index = 2, value = "test-2")
    private Integer age;

    @ExcelProperty(index = 3, value = "test-3")
    private String email;

    @ExcelProperty(index = 4, value = "test-4")
    private Integer deleteFlag;

    @ExcelProperty(index = 5, value = "test-5")
    private Date createTime;

    @ExcelProperty(index = 6, value = "test-6")
    private Date updateTime;

    @ExcelProperty(index = 7, value = "test-7")
    private String createUserCode;

    @ExcelProperty(index = 8, value = "test-8")
    private String updateUserCode;
    @ExcelProperty(index = 9, value = "test-9")
    private Integer version;
}